package com.itcast.admin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.itcast.admin.dao.AdminDao;
import com.itcast.admin.model.Admin;
import com.itcast.admin.service.AdminService;

@Service
public class AdminServiceImpl implements AdminService {

	@Autowired
	private AdminDao adminDao;

	@Override
	public Admin getByLoginName(String loginName) {
		
		return adminDao.selectByLoginName(loginName);
	}
	
}
